package com.ztools.mvp.proxy;

import android.os.Bundle;
import android.view.View;

import com.ztools.mvp.IPresenter;
import com.ztools.mvp.IView;


/**
 * 管理Activity的生命周期
 * Created by zhangxuehui on 2018/3/13.
 */

public interface FragmentLifecycleCallback<V extends IView, P extends IPresenter<V>> {

    void onAttach();

    void onCreate(Bundle savedInstanceState);

    void onActivityCreated(Bundle savedInstanceState);

    void onViewCreated(View view, Bundle savedInstanceState);

    void onStart();

    void onPause();

    void onResume();

    void onStop();

    void onDetach();

    void onDestroyView();

    void onDestroy();
}
